package com.huins.android.intent;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class MyIntent2 extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		/*Intent intent = getIntent();

		String action = intent.getAction();
		Log.i("MyActivity", action);

		Set<String> categories = intent.getCategories();
		if (categories != null) {
			Iterator<String> iter = categories.iterator();
			if (iter.hasNext()) {
				String category_string = iter.next();
				Log.i("MyActivity", category_string);
			}
		}*/
		setContentView(R.layout.main2);
		
		Button terminate = (Button) findViewById(R.id.button2);
		terminate.setOnClickListener(
				new Button.OnClickListener(){
					@Override
					public void onClick(View v) {
						Log.i("Setin.Activity", "MyActivity2 finish");
						finish();
						
					}
				}
		);
	}
}